<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript">
	$(function(){
		$("th").css("backgroundColor","#6f6f6f");
		$("th").css("height","50px");
	});
	function check() {
		var name=$("#name").val();
		var sex=$("#sex").val();
		var age=$("#age").val();
		var address=$("#address").val();
		var email=$("#email").val();
		if (name=="") {
			alert("学员姓名不能为空");
			return false;
		}
		if (sex=="") {
			alert("学员性别不能为空");
			return false;
		}
		if (age=="") {
			alert("学员年龄不能为空");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
<form action="UPdate?id=${requestScope.stu.sid }" method="post" onsubmit="return check()">
<table border="1">
	<tr><th colspan="2" >学员信息</th></tr>
	<tr><td>学员姓名</td><td><input type="text" id="name" name="name" value="${requestScope.stu.sname }"> </td></tr>
	<tr><td>学员性别</td><td><input type="text" id="sex" name="sex" value="${requestScope.stu.sgender }"> </td></tr>
	<tr><td>学员年龄</td><td><input type="text" id="age" name="age" value="${requestScope.stu.sage }"> </td></tr>
	<tr><td>家庭住址</td><td><input type="text" id="address" name="address" value="${requestScope.stu.saddress }"> </td></tr>
	<tr><td>Email</td><td><input type="text" id="email" name="email" value="${requestScope.stu.semail }"> </td></tr>
	<tr><td colspan="2"  align="center"><input type="submit" value="修改"> </td></tr>
</table>
</form>
</body>
</html>